﻿import request from '/@/utils/request';
enum Api {
  AddReceiveData = '/api/receiveData/add',
  DeleteReceiveData = '/api/receiveData/delete',
  UpdateReceiveData = '/api/receiveData/update',
  PageReceiveData = '/api/receiveData/page',
  DetailReceiveData = '/api/receiveData/detail',
}

// 增加接收的SocketDatat
export const addReceiveData = (params?: any) =>
	request({
		url: Api.AddReceiveData,
		method: 'post',
		data: params,
	});

// 删除接收的SocketDatat
export const deleteReceiveData = (params?: any) => 
	request({
			url: Api.DeleteReceiveData,
			method: 'post',
			data: params,
		});

// 编辑接收的SocketDatat
export const updateReceiveData = (params?: any) => 
	request({
			url: Api.UpdateReceiveData,
			method: 'post',
			data: params,
		});

// 分页查询接收的SocketDatat
export const pageReceiveData = (params?: any) => 
	request({
			url: Api.PageReceiveData,
			method: 'post',
			data: params,
		});

// 详情接收的SocketDatat
export const detailReceiveData = (id: any) => 
	request({
			url: Api.DetailReceiveData,
			method: 'get',
			data: { id },
		});


